package com.ys.entity.business;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TB_BaseinfoCzXq", catalog="Id")
public class TbBaseinfoCzXq extends BaseEntity<TbBaseinfoCzXq> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pid", nameJava="pid", typeDataBase="bigint")
	private Long pid;
	@YsField(nameDataBase="Djid", nameJava="djid", typeDataBase="bigint")
	private Long djid;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="Type", nameJava="type", typeDataBase="varchar")
	private String type;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TbBaseinfoCzXq setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getPid() {
		return pid;
	}
	public TbBaseinfoCzXq setPid(Long pid) {
		this.pid = pid;
		return this;
	}
	public Long getDjid() {
		return djid;
	}
	public TbBaseinfoCzXq setDjid(Long djid) {
		this.djid = djid;
		return this;
	}
	public String getName() {
		return name;
	}
	public TbBaseinfoCzXq setName(String name) {
		this.name = name;
		return this;
	}
	public String getType() {
		return type;
	}
	public TbBaseinfoCzXq setType(String type) {
		this.type = type;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TbBaseinfoCzXq setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TbBaseinfoCzXq setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TbBaseinfoCzXq setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TbBaseinfoCzXq tbBaseinfoCzXq(
		Long pid,
		Long djid,
		String name,
		String type,
		Integer status
			) {
		TbBaseinfoCzXq entity = new TbBaseinfoCzXq();
		entity.setPid(pid);
		entity.setDjid(djid);
		entity.setName(name);
		entity.setType(type);
		entity.setStatus(status);
		return entity;
	}
}